package JFrame;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

// 活期存款成功界面
public class DepositSuccessJFrame extends JFrame {
    public DepositSuccessJFrame() {
        this.setName("村镇银行业务储蓄系统");
        this.setTitle("存款成功界面");
        this.setSize(300, 200);
        this.setAlwaysOnTop(true);
        this.setLocationRelativeTo(null);
        this.setDefaultCloseOperation(2);
        this.setLayout(new FlowLayout());
        this.setVisible(true);

        JLabel labelSuccess = new JLabel("存款成功");
        Font font = new Font("宋体", Font.PLAIN, 30);
        labelSuccess.setFont(font);
        labelSuccess.setVerticalAlignment(SwingConstants.CENTER);
        labelSuccess.setForeground(new Color(255, 0, 111));
        this.add(labelSuccess);
    }
}
